/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.book.service.in;

import java.util.List;

import com.thinkgem.jeesite.modules.book.entity.out.BookOut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.book.entity.in.BookIn;
import com.thinkgem.jeesite.modules.book.dao.in.BookInDao;

/**
 * 借阅管理_退还生成Service
 * @author 呆子
 * @version 2020-02-22
 */
@Service
@Transactional(readOnly = true)
public class BookInService extends CrudService<BookInDao, BookIn> {

    @Autowired
    private BookInDao bookInDao;

	public BookIn get(String id) {
		return super.get(id);
	}
	
	public List<BookIn> findList(BookIn bookIn) {
		return super.findList(bookIn);
	}
	
	public Page<BookIn> findPage(Page<BookIn> page, BookIn bookIn) {
		return super.findPage(page, bookIn);
	}

    //连接多个表查询
    public Page<BookIn> inQueryPage(Page<BookIn> page, BookIn bookIn) {
        bookIn.setPage(page);
        page.setList(bookInDao.inQueryTablesList(bookIn));
        return page;
    }
    //根据ID查询返回至form
    public BookIn inQueryManyForm(BookIn bookIn){
        return bookInDao.inQueryManyForm(bookIn);
    }
	@Transactional(readOnly = false)
	public void save(BookIn bookIn) {
		super.save(bookIn);
	}
	
	@Transactional(readOnly = false)
	public void delete(BookIn bookIn) {
		super.delete(bookIn);
	}
	
}